import request from '@/utils/request'

// 查询活动分类列表
export function listUser(query) {
  return request({
    url: '/system/activityCategory/list',
    method: 'get',
    params: query
  })
}
//活动分类修改状态/编辑
export function activityStatusApi(data) {
  return request({
    url: '/system/activityCategory',
    method: 'put',
    data:data
  })
}
// 编辑回显时候需要调用的详情接口
export function putDetail(id) {
  return request({
    url: `/system/activityCategory/${id}`,
    method: 'get',
  })
}
//活动分类添加
export function activityAddApi(data) {
  return request({
    url: '/system/activityCategory',
    method: 'post',
    data:data
  })
}